package api.sea;

import conf.Url;
import util.HttpClientUtils;
import util.ResponseData;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Map;

public class IcomeTestApi {
    private static final String icome_test_url= Url.Base_Url+ "consumer/lgsWtd10/process";
    public ResponseData icome_test(String systemNumber,String state,int stuffingType,String truckCompany,String truckCompanyCode,String pickupWharf,
                                   String pickupDate,String expectedDeliveryDate,String id,int isStorage) throws IOException, URISyntaxException {
        Map<String,Object> data=new HashMap<>();
        data.put("systemNumber",systemNumber);
        data.put("state",state);
        data.put("stuffingType",stuffingType);
        data.put("truckCompany",truckCompany);
        data.put("truckCompanyCode",truckCompanyCode);
        data.put("pickupWharf",pickupWharf);
        data.put("pickupDate",pickupDate);
        data.put("expectedDeliveryDate",expectedDeliveryDate);
        data.put("id",id);
        data.put("isStorage",isStorage);
        return HttpClientUtils.post_json(icome_test_url,data);
    }
}
